﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Baocaotoncuoi.ascx.cs" Inherits="WebUserControl_Baocaotoncuoi" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dxwgv" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v9.2.Export, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView.Export" tagprefix="dxwgv" %>
<%@ Register src="uscMsgBox.ascx" tagname="uscMsgBox" tagprefix="uc2" %>

<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/datePicker.css")%>' type="text/css" />
<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/K_BaoCaoFormLayout.css")%>' type="text/css" />

<script type="text/javascript">
     function pageLoad() {
     
      $(function()
        {
	            $("#<%= TextBox1.ClientID %>").datePicker(
	                {
	                    clickInput:true,
			            startDate: '01/01/1970'
	                }
	                );
        });
        
       $("#<%= Button1.ClientID %>").click(function() { 
        $.blockUI({
             message: '<h1>Xin vui lòng chờ xử lý</h1>', 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#f00', 
            opacity: .5, 
            color: '#fff' 
        } }); 
        }); 
       $("#<%= ASPxButton1.ClientID %>").click(function() { 
        $.blockUI({
             message: '<h1>Xin vui lòng chờ xử lý</h1>', 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#f00', 
            opacity: .5, 
            color: '#fff' 
        } }); 
        }); 
       
       
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
                function EndRequestHandler(sender, args) {
                        $.unblockUI();
                }
        }  
   
</script>  

 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
 <Triggers><asp:PostBackTrigger ControlID="ASPxButton1" /></Triggers>
 <ContentTemplate>
 <fieldset>
    <legend>Báo cáo tồn cuối</legend>
     <div class="fm-req">
             <asp:Label ID="Label1" runat="server" Text="Label" 
                style="font-family: Arial, Helvetica, sans-serif; color: #000000;"></asp:Label>
      </div>
       <div class="fm-req">
             <asp:Label ID="Label2" runat="server" style="font-family: Arial, Helvetica, sans-serif; color: #000000;" Text="Label">
             </asp:Label>
       </div>
        <div class="fm-req">
            <label for="TextBox1">Ngày:</label>
             <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
      </div>
      <div class="fm-multi">
      <div class="fm-opt">
         <asp:CheckBox ID="CheckBox1" runat="server" Text="In tồn kho bằng 0" />
      </div>
    </div>
 </fieldset>
 <div>
  <asp:Button ID="Button1" runat="server" Height="23px" Text="Báo cáo" 
                onclick="Button1_Click" />&nbsp;&nbsp;
                <dxe:ASPxButton ID="ASPxButton1" runat="server" 
                CssFilePath="~/App_Themes/Glass/{0}/styles.css" CssPostfix="Glass" 
                onclick="ASPxButton1_Click" Text="Export to excel">
            </dxe:ASPxButton>
 </div>
 
<br />
            <dxwgv:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" 
                GridViewID="Gv_Qty">
            </dxwgv:ASPxGridViewExporter>
            <dxwgv:ASPxGridView ID="Gv_Qty" runat="server" AutoGenerateColumns="False" 
                Width="608px">
                <SettingsPager PageSize="40">
                </SettingsPager>
                <Columns>
<dxwgv:GridViewDataTextColumn FieldName="STT" Caption="STT" VisibleIndex="0"></dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Mã" FieldName="itemkey" VisibleIndex="1" 
                        Width="70px">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Tên" FieldName="description" 
                        VisibleIndex="2" Width="100%">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Tồn cuối" FieldName="Qty" 
                        VisibleIndex="3">
                    </dxwgv:GridViewDataTextColumn>
                </Columns>
                <Settings ShowFilterRow="True" />
            </dxwgv:ASPxGridView>
        
</ContentTemplate>
        </asp:UpdatePanel>
<uc2:uscMsgBox ID="uscMsgBox1" runat="server" />


